package org.example.order.VO;

import jakarta.validation.constraints.*;
import lombok.Data;

@Data
public class UpdateShippingAddressVO {

    private Long id;
    @Size(max = 64, message = "收货人姓名长度不能超过64个字符")
    private String receiverName;
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    @Size(max = 20, message = "收货人电话长度不能超过20个字符")
    private String receiverPhone;


    @Size(max = 64, message = "省份长度不能超过64个字符")
    private String province;


    @Size(max = 64, message = "城市长度不能超过64个字符")
    private String city;


    @Size(max = 64, message = "区/县长度不能超过64个字符")
    private String district;


    @Size(max = 255, message = "详细地址长度不能超过255个字符")
    private String detailAddress;


    @Min(value = 0, message = "是否默认地址值不正确")
    @Max(value = 1, message = "是否默认地址值不正确")
    private Integer isDefault;

}